package com.example.mobile2032021606170hsy0427;

import android.os.Bundle;
import android.widget.TextView;

import androidx.appcompat.app.AppCompatActivity;
import androidx.recyclerview.widget.RecyclerView;

import java.util.ArrayList;
import java.util.List;
import java.util.ListIterator;

public class MainActivity extends AppCompatActivity {


    private TextView tvMainTitle;
    private RecyclerView recyclerView;
    private List<Park> list = new ArrayList();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        initView();
        initData();
    }


    private void initView() {
        tvMainTitle = (TextView) findViewById(R.id.tv_main_title);
        recyclerView = (RecyclerView) findViewById(R.id.recyclerView);
    }
    private  void  initData(){
        List.add(new Park("大良华盖路商业步行街-停车场","30","3元/小时","72公里","华盖路63号附近"));
        List.add(new Park("万达广场(广州金沙洲店)-地下停车场","25","4元/小时","73公里","佛山市南海区建设大道中12号万达广场B2"));
        List.add(new Park("清晖园-停车场","20","5元/小时","72公里","华盖里直1街与宝华巷交叉口北50米"));
        List.add(new  Park("卜蜂莲花(南海店)-停车场","15","6元/小时","60公里","桂城桂澜路城市广场A座卜蜂莲花"));

    }
}